import request from "@/utils/request";

// 字典数据-列表
export function dictDataList(query = {}) {
  return request({
    url: "/api/admin/sysDictData/list/" + query.dictType,
    method: "get"
  });
}

// 字典数据-新增
export function dictDataAdd(data) {
  return request({
    url: "/api/admin/sysDictData/add",
    method: "post",
    data,
  });
}

// 字典数据-编辑
export function dictDataEdit(data) {
  return request({
    url: "/api/admin/sysDictData/update",
    method: "put",
    data,
  });
}

// 字典数据-删除
export function dictDataDelete(dictCode) {
  return request({
    url: "/api/admin/sysDictData/delete/" + dictCode,
    method: "delete",
  });
}

